import request from '@/utils/request'

// 查询设备类型表列表
export function listFacility_type(query) {
  return request({
    url: '/camp/facility_type/list',
    method: 'get',
    params: query
  })
}

// 查询设备类型表详细
export function getFacility_type(ftId) {
  return request({
    url: '/camp/facility_type/' + ftId,
    method: 'get'
  })
}

// 新增设备类型表
export function addFacility_type(data) {
  return request({
    url: '/camp/facility_type',
    method: 'post',
    data: data
  })
}

// 修改设备类型表
export function updateFacility_type(data) {
  return request({
    url: '/camp/facility_type',
    method: 'put',
    data: data
  })
}

// 删除设备类型表
export function delFacility_type(ftId) {
  return request({
    url: '/camp/facility_type/' + ftId,
    method: 'delete'
  })
}
